<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../../bootstrap-table/bootstrap-table.css"/>
    <link rel="stylesheet" href="../../bootstrap/css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="../../toastr/toastr.min.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
</head>
<body>
<div class="col-*-12">

    <div id="toolbar" class="form-inline">
        <div class="form-inline" style="margin-left: 150px">
            <label class="sr-only" for="cl_numSearch">车牌号</label>
            <div class="input-group mb-2 mr-sm-2">
                <input type="text" class="form-control" id="cl_numSearch" placeholder="车牌号">
            </div>
            <label class="sr-only" for="cl_nameSearch" >驾驶员</label>
            <input type="text" class="form-control mb-2 mr-sm-2" id="cl_nameSearch" style="margin-left: 20px" placeholder="驾驶员">

        </div>
        <div class="form-inline" style="margin-left: 50px;margin-top: 20px">
            <label class="sr-only" for="cl_companySearch">使用单位</label>
            <input type="text" class="form-control mb-2 mr-sm-2" id="cl_companySearch" placeholder="使用单位">
            <label class="sr-only" for="cl_outtimeSearch">使用日期</label>
            <input type="text" class="form-control mb-2 mr-sm-2" id="cl_outtimeSearch" placeholder="使用日期">
            <label class="sr-only" for="cl_daysSearch">使用时间</label>
            <input type="text" class="form-control mb-2 mr-sm-2" id="cl_daysSearch" placeholder="使用时间">
            <button type="button" class="btn btn-outline-dark" id="searchCarLogBtn" style="margin-left: 20px; margin-bottom: 7px">检索</button>
        </div>
        <div class="btn btn-outline-primary" data-toggle="modal" data-target="#addModal" id="addCarLogBtn" style="margin-left: 30px;margin-bottom: -13px">添加记录</div>
        <div class="btn btn-outline-success" data-toggle="modal" data-target="#updateModal" id="updateCarLogBtn" style="margin-left: 10px;margin-bottom: -13px">修改记录</div>

    </div>
    <table id="carLogTab" class="table table-hover"></table>

    <div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myDialogHeaderLable"></h4>
                </div>
                <div class="modal-body">
                    <div id="insertcarinfo" role="form">
                        <!--员工编号-->
                        <div class="form-group">
                            <input type="hidden" id="cl_id">
                            <input type="text" class="form-control" id="cl_num" placeholder="车牌号">
                        </div>
                        <!--姓名-->
                        <div class="form-group">
                            <input type="text" class="form-control" id="cl_name" placeholder="驾驶员">
                        </div>
                        <div class="form-row">
                            <div class="form-group col-md-9">
                                <label for="cl_state">状态</label>
                                <select id="cl_state"  class="form-control">
                                    <option selected value="1">工作</option>
                                    <option selected value="2">歇班</option>
                                    <option selected value="3">维修</option>
                                    <option selected value="4">线下</option>
                                    <option selected value="5">废弃</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <input type="text" class="form-control" id="cl_days" placeholder="使用天数">
                        </div>
                        <div class="form-group">
                            <input type="text" class="form-control" id="cl_company" placeholder="使用单位">
                        </div>
                        <div class="form-group">
                            <input type="text" class="form-control" id="cl_price" placeholder="使用价格">
                        </div>
                        <div class="form-group">
                            <input type="text" class="form-control" id="cl_oilmoney" placeholder="油费">
                        </div>

                        <div class="row">
                            <div class='col-sm-6'>
                                <div class="form-group">
                                    <label>使用日期：</label>
                                    <!--指定 date标记-->
                                    <div class='input-group date' >
                                        <input type='text' class="form-control" id="cl_outtime" />
                                        <span class="input-group-addon">
                                                <span class="glyphicon glyphicon-calendar"></span>
                                                </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <button type="button" class="btn btn-primary" id="addRecord"></button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../../jquery/jquery-3.4.1.min.js"></script>
<script src="../../bootstrap/js/bootstrap.min.js"></script>
<script src="../../bootstrap-table/bootstrap-table.js"></script>
<script src="../../bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
<script src="../../js/moment-with-locales.js"></script>
<script src="../../bootstrap/js/bootstrap-datetimepicker.min.js"></script>
<script src="../../toastr/toastr.min.js"></script>
<script src="../../js/carlog.js"></script>
</body>
</html>